package com.cf.conf.core.model;

import com.cf.crud.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * game-server-ConfigMapper
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/6/8 下午 05:36
 */
@Mapper
public interface ConfigMapper extends BaseMapper<Config> {
    @Select("select * from config where app=#{app} and profile=#{profile} and `key`=#{key}")
    Config selectByAppAndProfile(@Param("app") String app, @Param("profile") String profile, @Param("key") String key);
}
